/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.server.modules.sys.service.schedule;

import com.server.common.persistence.Page;
import com.server.common.service.CrudService;
import com.server.modules.sys.dao.schedule.ScheduleUserDao;
import com.server.modules.sys.entity.schedule.ScheduleUser;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 日程参与人Service
 * @author 丁光彪
 * @version 2016-12-23
 */
@Service
@Transactional(readOnly = true)
public class ScheduleUserService extends CrudService<ScheduleUserDao, ScheduleUser> {

	public ScheduleUser get(String id) {
		return super.get(id);
	}
	
	public List<ScheduleUser> findList(ScheduleUser scheduleUser) {
		return super.findList(scheduleUser);
	}
	
	public Page<ScheduleUser> findPage(Page<ScheduleUser> page, ScheduleUser scheduleUser) {
		return super.findPage(page, scheduleUser);
	}
	
	@Transactional(readOnly = false)
	public void save(ScheduleUser scheduleUser) {
		super.save(scheduleUser);
	}
	
	@Transactional(readOnly = false)
	public void delete(ScheduleUser scheduleUser) {
		super.delete(scheduleUser);
	}

    public void deleteTrue(ScheduleUser scheduleUser) {
		dao.deleteTrue(scheduleUser);
    }
}